package com.codes.core.common.enumtype.wordtpl;


/****
 * @param
 * @Description    word 模板 列表
 * @return
 * @Date 2020/7/4 15:09
 * @Created by peanut
 */
public enum TplWordEnum {


    //  \resources\template\word\zhongdaanjian
    // 载质量超限文书  zaizhiliangchaoxian
    zaizhiliang1(1001,"案件处理意见书个人.docx"),
    zaizhiliang2(1002,"案件处理意见书企业.docx"),
    zaizhiliang3(1003,"立案登记表个人.docx"),
    zaizhiliang4(1004,"立案登记表企业.docx"),
    zaizhiliang5(1005,"站点信息检测表.docx"),
    zaizhiliang6(1006,"站点信息检测表遮挡车牌.docx"),
    zaizhiliang7(1007,"结案报告个人.docx"),
    zaizhiliang8(1008,"结案报告企业.docx"),
    zaizhiliang09(1009,"询问笔录-代理人.docx"),
    zaizhiliang10(1010,"询问笔录-车主及法人.docx"),
    zaizhiliang11(1011,"询问笔录-驾驶员.docx"),
    zaizhiliang12(1012,"违法行为通知书.docx"),
    zaizhiliang13(1013,"送达回证.docx"),
    zaizhiliang14(1014,"陈述申辩.docx"),

    // 年检 nianjian
    nianjian1(2001,"案件处理意见书个人.docx"),
    nianjian2(2002,"案件处理意见书企业.docx"),
    nianjian3(2003,"立案登记表个人.docx"),
    nianjian4(2004,"立案登记表企业.docx"),
    nianjian5(2005,"站点信息检测表.docx"),
    nianjian6(2006,"站点信息检测表遮挡车牌.docx"),
    nianjian7(2007,"结案报告个人.docx"),
    nianjian8(2008,"结案报告企业.docx"),
    nianjian09(2009,"询问笔录-代理人.docx"),
    nianjian10(2010,"询问笔录-车主及法人.docx"),
    nianjian11(2011,"询问笔录-驾驶员.docx"),
    nianjian12(2012,"违法行为通知书.docx"),
    nianjian13(2013,"送达回证.docx"),
    nianjian14(2014,"陈述申辩.docx"),
    // 动态监控 dongtaijiankong
    jiankong1(3001,"案件处理意见书个人.docx"),
    jiankong2(3002,"案件处理意见书企业.docx"),
    jiankong3(3003,"立案登记表个人.docx"),
    jiankong4(3004,"立案登记表企业.docx"),
    jiankong5(3005,"站点信息检测表.docx"),
    jiankong6(3006,"站点信息检测表遮挡车牌.docx"),
    jiankong7(3007,"结案报告个人.docx"),
    jiankong8(3008,"结案报告企业.docx"),
    jiankong09(3009,"询问笔录-代理人.docx"),
    jiankong10(3010,"询问笔录-车主及法人.docx"),
    jiankong11(3011,"询问笔录-驾驶员.docx"),
    jiankong12(3012,"违法行为通知书.docx"),
    jiankong13(3013,"送达回证.docx"),
    jiankong14(3014,"陈述申辩.docx"),
    // 线路违规 xianluweigui
    xianlu1(4001,"案件处理意见书个人.docx"),
    xianlu2(4002,"案件处理意见书企业.docx"),
    xianlu3(4003,"立案登记表个人.docx"),
    xianlu4(4004,"立案登记表企业.docx"),
    xianlu5(4005,"站点信息检测表.docx"),
    xianlu6(4006,"站点信息检测表遮挡车牌.docx"),
    xianlu7(4007,"结案报告个人.docx"),
    xianlu8(4008,"结案报告企业.docx"),
    xianlu09(4009,"询问笔录-代理人.docx"),
    xianlu10(4010,"询问笔录-车主及法人.docx"),
    xianlu11(4011,"询问笔录-驾驶员.docx"),
    xianlu12(4012,"违法行为通知书.docx"),
    xianlu13(4013,"送达回证.docx"),
    xianlu14(4014,"陈述申辩.docx"),
    // 重大案件 zhongdaanjian
    zhongdaanjian1(5001,"重大执法决定法制审核意见书.docx"),
    zhongdaanjian2(5002,"重大案件集体讨论记录.docx"),
    // 几何


    /**
     重大执法决定法制审核意见书.docx
     重大案件集体讨论记录.docx
     */




    yuliu(999999 ,"最后的莫西干人");




    /** code */
    private int code;

    /** 显示标签 */
    private String label;

    /**
     * 构造器，必须私有
     * @param code
     */
    TplWordEnum(int code, String label){
        this.code = code;
        this.label = label;
    }

    /**
     * 获取code的文本
     * @param code
     * @return
     */
    public static String getLabelByCode (int code){
        for (TplWordEnum enuma : TplWordEnum.values()){
            if (enuma.getCode() == code){
                return enuma.getLabel();
            }
        }
        return "未知枚举项";
    }
    /**
     * 根据文本获取code
     */
    public static int getCodeByLabel(String label){
        for(TplWordEnum enuma : TplWordEnum.values()){
            if(enuma.getLabel().equals(label)){
                return enuma.getCode();
            }
        }
        return -1;

    }

    /**
     * 根据code获取枚举
     */
    public static TplWordEnum getRoleByCode(int code){
        for(TplWordEnum enuma : TplWordEnum.values()){
            if(enuma.getCode() == code){
                return enuma;
            }
        }
        return null;
    }

    public String toString(){
        return label;
    }

    public String getLabel() {
        return label;
    }

    public int getShort(){
        return this.code;
    }

    public int getCode(){
        return this.code;
    }


}
